Merged
Conversation
d84fe25 to
519d85a
Compare
519d85a to
d796e49
Compare
There was a problem hiding this comment.
Pull request overview
Adds in-app update support for the Tauri desktop app, including updater configuration and release pipeline changes to generate/sign updater artifacts.
Changes:
- Add an updater flow in the main Svelte layout that checks for updates, installs them, and optionally relaunches the app.
- Enable/configure the Tauri updater plugin (config, capabilities, Rust plugin registration) and add required Tauri plugins (dialog/process).
- Update the GitHub release workflow to sign builds and publish
latest.jsonupdater metadata.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/routes/(main)/+layout.svelte | Adds on-mount update check + install + relaunch prompting. |
| src-tauri/tauri.conf.json | Enables updater artifacts + configures updater endpoints/pubkey. |
| src-tauri/src/lib.rs | Registers updater/dialog/process plugins in the Tauri builder. |
| src-tauri/src/json.rs | Rust formatting-only changes. |
| src-tauri/capabilities/desktop.json | Grants updater permission for the main window on desktop platforms. |
| src-tauri/capabilities/default.json | Grants dialog/process permissions for updater UX and relaunch. |
| src-tauri/Cargo.toml | Adds updater/dialog/process plugin dependencies. |
| src-tauri/Cargo.lock | Dependency lock updates from added plugins. |
| package.json | Adds JS-side updater/dialog/process plugins + bumps @tauri-store/svelte. |
| pnpm-lock.yaml | Lockfile updates for new JS dependencies. |
| .github/workflows/release.yml | Adds signing env vars and publishes updater JSON; adjusts macOS bundle args. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+26
to
+44
| const update = await check(); | ||
| if (!update) return; | ||
|
|
||
| const install = await ask( | ||
| `A new update is available. Would you like to install it now?`, | ||
| "Update Available", | ||
| ); | ||
|
|
||
| if (!install) return; | ||
|
|
||
| await update.downloadAndInstall(); | ||
|
|
||
| const restart = await ask( | ||
| `Update installed. Would you like to restart the app now?`, | ||
| "Restart Required", | ||
| ); | ||
|
|
||
| if (restart) { | ||
| await relaunch(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.